//
//  YOCache.h
//  Youhuiju
//
//  Created by yutenys on 16/7/13.
//  Copyright © 2016年 yutenys. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface YOCache : NSObject
@property (assign, nonatomic) NSTimeInterval cacheTime;
@property (strong, nonatomic) NSString       *cacheIdentifier;
@property (strong, nonatomic) NSCache        *cache;



+(instancetype)shareInstance;

- (void)cacheResponseWithIdentifier:(NSString *)identifier;

- (void)cacheRequestWithIdentifier:(NSString *)identifier;

- (instancetype)getCachWithIdentifier:(NSString *)identifier;

- (void)deleteCacheWithIdetifier:(NSString *)identifier;

- (void)clearAllCache;
@end
